﻿using Domain.Event;
using Infrastructure.DomainEvent;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Application.Admin.Event
{
    public class UserLoginEventHandler : IDomainEventHandler<UserLoginEvent>
    {
        public override Task HandleAysnc(UserLoginEvent domainEvent, CancellationToken cancellationToken = default)
        {
            Console.WriteLine(domainEvent.ID.ToString("N"));
            return Task.CompletedTask;
        }
    }
}
